package com.zzg.pattern.observable;

import java.util.Observable;
import java.util.Observer;

import com.zzg.pattern.observable.subject.ConcreteSubject;

public class ConcreteObserver implements Observer {
	private int state;

	@Override
	public void update(Observable o, Object arg) {
		state = ((ConcreteSubject) o).getState();

	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	

}
